<template>
  <el-breadcrumb class="mobile">
    <el-breadcrumb-item :to="{ name: RouterEnum.HOME }">返回首页</el-breadcrumb-item>
    <template v-if="route.matched.length">
      <el-breadcrumb-item v-for="r of route.matched" :key="r.path">{{ r.meta.menu?.title }}</el-breadcrumb-item>
    </template>
  </el-breadcrumb>
</template>

<script setup lang="ts">
import { RouterEnum } from '@/enum/routerEnum';
import { useRoute } from 'vue-router';
const route = useRoute();
</script>

<style scoped lang="scss"></style>
